package cn.zucc.edu.handyzucc.service;

import cn.zucc.edu.handyzucc.entity.PostCmt;
import cn.zucc.edu.handyzucc.entity.ShopCmt;

import java.util.List;

public interface CommentService {
    List<PostCmt> getPostCommentsByPost(Integer postcmt_post);

    List<PostCmt> getPostCommentsByAuthor(Integer postcmt_author);

    boolean addPostComment(PostCmt postCmt);

    boolean deletePostComment(Integer postcmt_id, Integer postcmt_post);

    List<ShopCmt> getShopCommentsByShop(Integer shopcmt_shop);
    ShopCmt getShopCommentsDetail(Integer shopcmt_id);
    boolean addShopComment(ShopCmt shopCmt);
    boolean deleteShopComment(Integer shopcmt_id, Integer shopcmt_shop,Integer shopcmt_rating);
}